package com.grape.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class StatisticYearMonthReq {

    /** 账本id */
    @ApiModelProperty(value = "账本id", required = true)
    @NotBlank(message = "账本id不能为空")
    private String accountBookId;

    /** 年份 */
    @ApiModelProperty(value = "年份", required = true)
    @NotNull(message = "年份不能为空")
    private Integer year;

    /** 月份 */
    @ApiModelProperty(value = "月份", required = true)
    @NotNull(message = "月份不能为空")
    private Integer month;

    /** 类型 */
    @ApiModelProperty(value = "类型", required = true)
    @NotBlank(message = "类型不能为空")
    private String type;

    /** 用户id */
    @ApiModelProperty(value = "用户id", required = false)
    private String userId;

    /** 开始日期 */
    @ApiModelProperty(value = "开始日期", required = false)
    private String startDay;

    /** 结束日期 */
    @ApiModelProperty(value = "结束日期", required = false)
    private String endDay;
}
